package liuch.rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * 远程服务实现类
 */
public class ServerImpl extends UnicastRemoteObject implements IServer {

    private String serverName;

    public ServerImpl(String serverName) throws RemoteException {
        super();
        this.serverName = serverName;
    }

    @Override
    public String server(String context) {
        return "server>>" + context;
    }
}
